#ifndef LINEBUFFER_H
#define LINEBUFFER_H

#include <mutex>
class LineBuffer
{
    std::string separator="\n";
    std::string buffer;
    std::mutex  bufferMutex;
public:
    LineBuffer(const std::string& sep="\n");
    bool getLine(std::string& line);
    bool pushToBuffer(const std::string& text);

};

#endif // LINEBUFFER_H
